#ifndef POINTLISTFORM_H
#define POINTLISTFORM_H

#include <QWidget>
#include <QList>
#include <QDesktopServices>
#include <QUrl>
#include <QMessageBox>
#include "geocaching.h"
#include "addpointdialog.h"
#include "editpointdialog.h"

// Форма "Список точек".

namespace Ui {
class PointListForm;
}

class PointListForm : public QWidget
{
    Q_OBJECT

public:
    explicit PointListForm(Geocaching*, QWidget *parent = 0);
    ~PointListForm();
    void activateWindow();
private:
    Ui::PointListForm *ui;
    Geocaching *myProg;
private slots:
    void UpdateForm(void);
    void on_addPointButton_clicked();
    void on_editPointButton_clicked();
    void on_deletePointButton_clicked();
    void on_pointListWidget_doubleClicked(const QModelIndex &index);
    void on_pointFindLineEdit_returnPressed();
    void on_propertyListWidget_doubleClicked(const QModelIndex &index);
    void on_pointListWidget_currentRowChanged(int currentRow);
};

#endif // POINTLISTFORM_H
